package org.eclipse.epsilon.emc.rdbms.view.workbench;

import java.util.ArrayList;
import org.eclipse.epsilon.emc.rdbms.core.imodeltest.TestEOL;

public class Simulator implements SimulatorInterface {

    private SimGUIInterface gui;
	
    private void notifyGUI()
    {
        if(gui != null)
        {
            gui.notifySimHasChanged();
        }
    }
    
	public void setGUI(SimulatorGUI gui) 
	{
		this.gui = gui;	
	}

	
	@Override
	public ArrayList<String> getTables() 
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ArrayList<String> getColumns() 
	{
		// TODO Auto-generated method stub
		return null;
	}

	public Object  sendCommand(String modelname,String command) throws Exception 
	{
		TestEOL testEOL = new TestEOL();
	    return testEOL.executeTestEOLScript(modelname,command);
	}
	
	
		
}
